package com.example.pattern.chainOfResponsibility;

import com.example.pattern.chainOfResponsibility.entity.Request;

public abstract class Handler {

    Handler next;

    public Handler(Handler next) {
        this.next = next;
    }

    public Handler getNext(){
        return next;
    }

    public abstract boolean process(Request request);
}
